All Pairs Shortest Paths Algorithms
نویسندگان
چکیده
Given a communication network or a road network one of the most natural algorithmic question is how to determine the shortest path from one point to another. In this paper we deal with one of the most fundamental problems of Graph Theory, the All Pairs Shortest Path (APSP) problem. We study three algorithms namely The FloydWarshall algorithm, APSP via Matrix Multiplication and the Johnson’s algorithm for this problem. We also give a slight modification to the FloydWarshall Algorithm which decreases the number of computations but the asymptotic order remains the same. Index Terms — All Pairs Shortest Path (APSP), Floyd Warshall algorithm (F-W), APSP via Matrix Multiplication, Johnson’s algorithm. INTRODUCTION Shortest paths computation is one of the most fundamental problems in graph theory. The huge interest in the problem is mainly due to the wide spectrum of its applications, ranging from routing in communication networks to robot motion planning, scheduling, sequence alignment in molecular biology and length-limited Huffman coding, to name only a very few. The problem divides into two related categories: single-source shortest-paths problems and all-pairs shortest-paths problems. The single-source shortest-path problem in a directed graph consists of determining the shortest path from a fixed source vertex to all other vertices. The all-pairs shortest-distance problem is that of finding the shortest paths between all pairs of vertices of a graph.
منابع مشابه
All Pairs Shortest Paths: Randomization and Replacement
We present a survey of results in the field of graph algorithms. We begin with an All Pairs Shortest Path algorithm with some constraints that runs in O(n) by Peres. We continue with a Replacement Paths algorithm by Williams and conclude with a smoothed analysis of a Single Source Shortest Paths algorithm by Banderier. Each of these problems has connections to randomization in graph algorithms.
متن کاملFinding the Hidden Path: Time Bounds for All-Pairs Shortest Paths
We investigate the all-pairs shortest paths problem in weighted graphs. We present an algorithm|the Hidden Paths Algorithm|that nds these paths in time O(m n+n 2 log n), where m is the number of edges participating in shortest paths. Our algorithm is a practical substitute for Dijkstra's algorithm. We argue that m is likely to be small in practice, since m = O(n logn) with high probability for ...
متن کاملFully Dynamic Algorithms for Maintaining All-Pairs Shortest Paths and Transitive Closure in Digraphs
This paper presents the first fully dynamic algorithms for maintaining all-pairs shortest paths in digraphs with positive integer weights less than b. For approximate shortest paths with an error factor of (2 + ), for any positive constant , the amortized update time isO(n2 log n= log logn); for an error factor of (1 + ) the amortized update time is O(n2 log3(bn)= 2). For exact shortest paths t...
متن کاملFast Shortest Paths Algorithms in the Presence of Few Negative Arcs
The shortest paths problem on weighted directed graphs is one of the basic network optimization problems. Its importance is mainly due to its applications in various areas, such as communication and transportation. Given a source node s in a weighted directed graph G, with n nodes and m arcs, the single-source shortest path problem (SSSP, for short) from s is the problem of finding the minimum ...
متن کاملRunning time analysis of Ant Colony Optimization for shortest path problems
Ant Colony Optimization (ACO) is a modern and very popular optimization paradigm inspired by the ability of ant colonies to find shortest paths between their nest and a food source. Despite its popularity, the theory of ACO is still in its infancy and a solid theoretical foundation is needed. We present bounds on the running time of different ACO systems for shortest path problems. First, we im...
متن کامل